<?php

header('Content-Type:application/json');//这个类型声明非常关键
header('Access-Control-Allow-Origin: *');//避免跨域

$array = [
    'status'  => 0,
    'message' => [
        [
            "id"             => 87,
            "title"          => "华为（HUAWEI）荣耀6Plus 16G双4G版",
            "add_time"       => "2015-04-19T16:51:03.000Z",
            "zhaiyao"        => "荣耀6 Plus，该机型分为两款型号，分别为PE-",
            "click"          => 0,
            "img_url"        => "http://www.webhm.top:8080/upload/201504/20/thumb_201504200046589514.jpg",
            "sell_price"     => 2195,
            "market_price"   => 2499,
            "stock_quantity" => 60
        ],
        [
            "id"             => 88,
            "title"          => "苹果Apple iPhone 6 Plus 16G 4G手机（联通三网版）",
            "add_time"       => "2015-04-19T17:00:58.000Z",
            "zhaiyao"        => "iPhone 6 Plus设计上和iPhone 6",
            "click"          => 0,
            "img_url"        => "http://www.webhm.top:8080/upload/201504/20/thumb_201504200059017695.jpg",
            "sell_price"     => 5780,
            "market_price"   => 6388,
            "stock_quantity" => 200
        ]
    ]
];
echo json_encode($array);